package sjtu.ist.warehouse4ws.service;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.FunctionpointDao;
import sjtu.ist.warehouse4ws.model.Functionpoint;

public class FunctionpointServiceImpl implements FunctionpointService{
	private FunctionpointDao functionpointDao;
    
	
	public void setFunctionpointDao(FunctionpointDao functionpointDao) {
		this.functionpointDao = functionpointDao;
	}

	@Override
	public List<Functionpoint> getFunctionpointList(String processid) {
		// TODO Auto-generated method stub
		return (List<Functionpoint>)functionpointDao.findAllFunctionpoints(processid);
	}

	@Override
	public List<Functionpoint> getFunctionpointList() {
		// TODO Auto-generated method stub
		return (List<Functionpoint>)functionpointDao.findAllFunctionpoints();
	}

	@Override
	public void savaFunctionpoint(Functionpoint functionpoint) {
		// TODO Auto-generated method stub
		functionpointDao.savaFunctionpoint(functionpoint);
	}

	@Override
	public Functionpoint getFunctionPoint(String id) {
		// TODO Auto-generated method stub
		return functionpointDao.getFunctionPoint(id);
	}
	

}
